package com.tiny_wind.tiny_wind_diary.dao;

import com.tiny_wind.tiny_wind_diary.entity.DiaryUnitEntity;
import com.tiny_wind.tiny_wind_diary.entity.NoteEntity;
import com.tiny_wind.tiny_wind_diary.entity.DiaryFilter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiaryUnitDao {

	DiaryUnitEntity[] search(DiaryUnitEntity filter);

	Integer insert(DiaryUnitEntity entity) ;
	Integer insertArray(DiaryUnitEntity[] entities);
	Integer insertList( @Param("list") List<DiaryUnitEntity> entities);
	int getTotalCount(DiaryUnitEntity filter);


	void update(DiaryUnitEntity entity);


	void delete(DiaryUnitEntity entity);

}
